package com.explorati.design_pattern.structural.adapter.example3.objectAdapter;

/**
 * 对象适配器模式，将水饺以对象的形式注入
 * 更符合软件设计模式，组合优于继承
 * @author explorati
 *
 */
public class FoodAdapter implements HunDun {
	private ShuiJiao shuijiao = new ShuiJiao();

	@Override
	public void makeHunDun() {
		shuijiao.makeShuiJIao();
		System.out.println("馄饨和水饺都是以面包馅做成的食品。");
	}

}
